cmake_minimum_required(VERSION 3.16)
set(TARGET ondevice-engine)
project(ondevice-engine)

find_package(KylinAiEngine CONFIG REQUIRED)

include_directories(
    ${CMAKE_SOURCE_DIR}/include
)

set(ONDEVICE_SOURCE
    ondeviceengine.h
    ondeviceengine.cpp
)

kylin_ai_add_engine_plugin(${TARGET} LARGE_MODEL
    ${ONDEVICE_SOURCE}
)

set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(${TARGET}
    kylin-ondevice-nlp-engine
    kylin-ondevice-speech-engine
)
